package com.eleven.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eleven.dao.ProjectsTypeMapper;
import com.eleven.pojo.ProjectsType;
import com.eleven.pojo.ProjectsTypeExample;
import com.eleven.service.ProjectstypeService;

@Service
public class ProjectstypeServiceImpl implements ProjectstypeService {
	@Autowired
	ProjectsTypeMapper ProjectsTypeMapper;
	/**
	 *查询公益类型的所有信息在可用状态下
	 */
	public List<ProjectsType> getProjectstype() {
		ProjectsTypeExample example = new ProjectsTypeExample();
		example.createCriteria().andPstTypeEqualTo(0);
		List<ProjectsType> list = ProjectsTypeMapper.selectByExample(example);
		return list;
	}

}
